package com.example.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class LoginController {

    @GetMapping("/login")
    public String login() {
        return "login";
    }

//    @PostMapping("/login")
//    public String loginIn(String username, String password) {
//        if (username.equals("admin") && password.equals("pass"))
//            return "redirect:/admin/article";
//        else
//            return "login";
//    }
}
